<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">

    <title>arcgis for javascript add base map(加载底图)</title>
    <style>
        html,body,#viewDiv {
            padding: 0;
            margin: 0;
            height: 100%;
            width: 100%;
        }
    </style>
    <link rel="stylesheet" href="https://js.arcgis.com/4.17/esri/css/main.css">
    <script src="https://js.arcgis.com/4.17/"></script>
    <script>
        require([
            "esri/Map",
            "esri/views/MapView"
        ],function(Map,MapView){
            var map = new Map({
                basemap:"topo-vector"  //底图
            });

            var view = new MapView({
                container:"viewDiv",  //id
                map:map,                //底图加载
                center:[-118.71511,34.09042],  //中心点
                zoom:11                 //缩放比
            }) 
        })
    </script>
</head>
<body>
    <div id="viewDiv"></div>
</body>
</html>